<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%String x=request.getParameter("x");//经度
String y=request.getParameter("y");//纬度
%>
<title>
</title>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=46ce9d0614bf7aefe0ba562f8cf87194&v=1.1&services=false"></script>
</head>
<body style="overflow:auto">
<p id="nameofhotel" style="font-size: 12px;font-weight:bold;margin-bottom:0px;margin-top:0px"></p>
<p style="font-family:Tahoma,simsun;font-size:12px;line-height:20px;margin-bottom:2px;margin-top:0px" id="addressmap"></p>
<div style="overflow:hidden;width:540px;height:350px;border:1px solid gray;text-align:center;" id="container"></div>
<div>
<p style="font-size: 12px;font-weight:bold;margin-bottom:2px">交通位置：</p>
<div style="height:100px;overflow-y:auto;font-family: Tahoma,simsun;font-size: 12px;line-height: 20px;" id="jiaotongweizhi"></div>
</div>
</body>
<script type="text/javascript">
var map = new BMap.Map("container");
map.enableScrollWheelZoom();
var point = new BMap.Point(<%=x%>, <%=y%>);
map.centerAndZoom(point, 11);
map.addControl(new BMap.NavigationControl());
var marker = new BMap.Marker(point);        // 创建标注  
map.addOverlay(marker);
$("#jiaotongweizhi").html($(window.parent.document).find("#jiaotongweizhis").html());
$("#addressmap").html($(window.parent.document).find("#addresshtml").html());
$("#nameofhotel").html($(window.parent.document).find("#hotelnamehtml").html());
</script>
</html>
